package com.lys.gen;

import com.lys.effect.ModEffects;
import com.lys.enchantment.ModEnchantments;
import com.lys.enchantment.armor.PerseveranceEnchantment;
import com.lys.enchantment.bow.ExplosiveArrowEnchantment;
import com.lys.enchantment.bow.MultiArrowEnchantment;
import com.lys.enchantment.bow.QuickPullingEnchantment;
import com.lys.enchantment.weapon.BloodthirstySwordEnchantment;
import com.lys.enchantment.weapon.LightningAxeEnchantment;
import com.lys.item.ModItemGroups;
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
import net.fabricmc.fabric.api.datagen.v1.provider.FabricLanguageProvider;

public class ModLanguageEnUSGenerator extends FabricLanguageProvider {

    public ModLanguageEnUSGenerator(FabricDataOutput dataOutput) {
        super(dataOutput,"en_us");
    }

    @Override
    public void generateTranslations(TranslationBuilder translationBuilder) {
        //附魔
        translationBuilder.add(ModEnchantments.EXPLOSIVE_ARROW,"explosive arrow");
        translationBuilder.add(ModEnchantments.QUICK_PULLING,"quick pulling");
        translationBuilder.add(ModEnchantments.MULTI_ARROW,"multi arrow");
        translationBuilder.add(ModEnchantments.PERSEVERANCE,"perseverance");
        translationBuilder.add(ModEnchantments.BLOODTHIRSTY_SWORD,"bloodthirsty sword");
        translationBuilder.add(ModEnchantments.LIGHTNING_AXE,"lightning axe");

        //附魔描述
        translationBuilder.add(ExplosiveArrowEnchantment.EXPLOSIVE_ARROW_TIP_TRANSLATION_KEY,"After the arrow hits, there is a probability that it will explode after 3 seconds");
        translationBuilder.add(QuickPullingEnchantment.QUICK_PULLING_TIP_TRANSLATION_KEY,"Speed up bow pulling");
        translationBuilder.add(MultiArrowEnchantment.MULTI_ARROW_TIP_TRANSLATION_KEY,"Firing arrows splits into extra arrows");
        translationBuilder.add(PerseveranceEnchantment.PERSEVERANCE_TIP_TRANSLATION_KEY,"When on the verge of death, gain the 'Unyielding Resilience' effect for (Enchantment Level + 1) seconds. During the effect, you are immune to death. Cooldown: 180 seconds.");
        translationBuilder.add(BloodthirstySwordEnchantment.BLOODTHIRSTY_SWORD_TIP_TRANSLATION_KEY,"When attacking a target, deduct 1 point of your own health to gain a 3-second 'Berserk' effect based on the enchantment level (increasing damage, movement speed, attack speed, and resistance to knockback)");
        translationBuilder.add(LightningAxeEnchantment.LIGHTNING_AXE_TIP_TRANSLATION_KEY,"Increases axe damage and has a chance to summon lightning when attacking a target, granting the 'Thunderstruck' effect (constantly summoning lightning in a circular area around you)");

        //状态效果
        translationBuilder.add(ModEffects.RESILIENCE,"perseverance");
        translationBuilder.add(ModEffects.MADNESS,"madness");

        //杂项
        translationBuilder.add("tip_translation_key","Hold down Shift to view details");
        translationBuilder.add(ModItemGroups.MOD_GROUP_TRANSLATION_KEY,"more enchantments");
    }
}
